package com.baske.bean;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

public class ProductOrder implements Serializable {
    private int orderId;
    private String type;

    public int getOrderId() {
        return orderId;
    }

    public void setOrderId(int orderId) {
        this.orderId = orderId;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public ProductOrder(int orderId, String type) {
        this.orderId = orderId;
        this.type = type;
    }

    @Override
    public String toString() {
        return "ProductOrder{" +
                "orderId=" + orderId +
                ", type='" + type + '\'' +
                '}';
    }

    public static List<ProductOrder> getOrderList() {
        List<ProductOrder> list = new ArrayList<>();
        list.add(new ProductOrder(1001,"创建订单"));
        list.add(new ProductOrder(1002,"创建订单"));
        list.add(new ProductOrder(1001,"支付订单"));
        list.add(new ProductOrder(1002,"支付订单"));
        list.add(new ProductOrder(1003,"创建订单"));
        list.add(new ProductOrder(1003,"支付订单"));
        list.add(new ProductOrder(1001,"完成订单"));
        list.add(new ProductOrder(1002,"完成订单"));
        list.add(new ProductOrder(1003,"完成订单"));
        return list;
    }
}
